package at.fhooe.engine.event.events;

import at.fhooe.engine.event.EventListener;

public class WindowCloseRequestEvent extends Event {

	public static final String TYPE = "WindowCloseRequest";

	public WindowCloseRequestEvent() {
		super(TYPE);
	}

	@Override
	public void processEvent(EventListener eventListener) {
		((Listener) eventListener).onWindowCloseRequest(this);
	}
	
	//embedded listener interface with the specific function call
	public interface Listener extends EventListener {
		public void onWindowCloseRequest(WindowCloseRequestEvent windowCloseRequestEvent);
	}
}
